package edu.sctu.liangyuxiang.day20150628;

/**
 * Created by user20 on 2015/6/28.
 */
public class PriceUntil {
    public void price(Appbean appbean){
        int big = 0;
        int small = 0;
        for (int i = 0; i <appbean.list.size() ; i++) {
            double price = Double.valueOf(appbean.list.get(i).goods_price).doubleValue();
            if(price > 100){
                big+=1;
            }else{
                small+=1;
            }
        }
        System.out.println("价格大于100的商品个数："+ big);
        System.out.println("价格小于100的商品个数："+ small);
    }
}
